package com.bella.springcloud.service.impl;

import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @program: cloud2022
 * @description:
 * @packagename: com.bella.springcloud.service.impl
 * @author: Bella白
 * @date: 2022-09-05 22:29
 **/
public interface AccountService {
    /**
     * 扣减账户余额
     *
     * @param userId 用户id
     * @param money  金额
     */
    void decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
